<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>

<%
    session.invalidate();
    
   Cookie cookie = null;
   Cookie[] cookies = null;
   // Get an array of Cookies associated with this domain
   cookies = request.getCookies();
   if( cookies != null ){
      for (int i = 0; i < cookies.length; i++){
         cookie = cookies[i];
         if((cookie.getName( )).compareTo("username") == 0 ){
            cookie.setMaxAge(0);
            response.addCookie(cookie);
         }
      }
  }
%>

<c:redirect url="http://webtek.org/Bonix/index.php"/>
